package com.xw.childhealth.enums;

import lombok.Getter;

/**
 * @Description:
 * @Author: y
 * @CreateDate: 2019-11-06 09:23
 * @Version: 1.0
 */
@Getter
public enum ResultEnum {
    DATA_IS_EMPTY(-1, "数据为空"),
    USERNAME_PWD_ERR(-2, "账号或密码错误！"),
    LOGIN_FAIL(-3, "登录失败,登录信息不正确"),
    OBJECT_TRAN_ERROR(-4, "对象转换错误"),
    DEL_ERR(-5, "删除失败"),
    ;

    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
